:(

102:[Microsoft][ODBC Driver 11 for SQL Server][SQL Server]'False' 附近有语法错误。 [ SQL语句 ] : SELECT T1.* FROM (SELECT thinkphp.*, ROW_NUMBER() OVER ( ORDER BY rand()) AS ROW_NUMBER FROM (SELECT t.TeacherID as UserID,t.hs_id,t.web_name,t.web_face,t.web_top,t.web_experience,t.Location as CityName,t.Specility,t.web_acexp,t.web_doc,t.web_intro FROM [teacher] as t WHERE t.TeacherID = '\'' AND t.Deleted = 'False' AND t.web_audit = 1 ) AS thinkphp) AS T1 WHERE (T1.ROW_NUMBER BETWEEN 1 AND 1)

错误位置

FILE: D:\site\qzkaizen.com\www\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 351

TRACE

#0 D:\site\qzkaizen.com\www\ThinkPHP\Library\Think\Db\Driver.class.php(351): E('102:[Microsoft]...')
#1 D:\site\qzkaizen.com\www\ThinkPHP\Library\Think\Db\Driver.class.php(181): Think\Db\Driver->error()
#2 D:\site\qzkaizen.com\www\ThinkPHP\Library\Think\Db\Driver.class.php(947): Think\Db\Driver->query('SELECT T1.* FRO...', false)
#3 D:\site\qzkaizen.com\www\ThinkPHP\Library\Think\Model.class.php(759): Think\Db\Driver->select(Array)
#4 D:\site\qzkaizen.com\www\App\Home\Model\TeacherModel.class.php(14): Think\Model->find()
#5 D:\site\qzkaizen.com\www\App\Home\Controller\TeacherController.class.php(248): Home\Model\TeacherModel->getTeacherInfo(''')
#6 [internal function]: Home\Controller\TeacherController->article_view()
#7 D:\site\qzkaizen.com\www\ThinkPHP\Library\Think\App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\TeacherController))
#8 D:\site\qzkaizen.com\www\ThinkPHP\Library\Think\App.class.php(110): Think\App::invokeAction(Object(Home\Controller\TeacherController), 'article_view')
#9 D:\site\qzkaizen.com\www\ThinkPHP\Library\Think\App.class.php(204): Think\App::exec()
#10 D:\site\qzkaizen.com\www\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#11 D:\site\qzkaizen.com\www\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#12 D:\site\qzkaizen.com\www\index.php(23): require('D:\\site\\qzkaize...')
#13 {main}